package com.blunka.framework.client.ui;

import javax.swing.JSplitPane;

/**
 * 右侧主窗体面板
 * @author Administrator
 *
 */
public class MainPanel extends JSplitPane{

	private static MainPanel panel = new MainPanel();

	public static MainPanel newInstance(){
		return panel;
	}

	private MainPanel(){
		initPanel();
	}

	private void initPanel(){
		//设置布局方式为上下布局
		this.setOrientation(VERTICAL_SPLIT);
		this.setTopComponent(OperatePanel.newInstance());
		this.setBottomComponent(LoggerPanel.newInstance());
		this.setOneTouchExpandable(true);
		//this.setDividerLocation(0.5);
	}
}
